﻿using System;

namespace YuYuKiCms.Framework.Core.Extention
{
    public static class DateTimeExtention
    {
        public static bool AreEqual(this DateTime date1, DateTime date2)
        {
            return date1.Year == date2.Year &&
                   date1.DayOfYear == date2.DayOfYear &&
                   date1.Hour == date2.Hour &&
                   date1.Minute == date2.Minute &&
                   date1.Second == date2.Second;
        }
    }
}